package cmpp.sms;

public class ShortContent extends ByteData {
	
	
	private String msgId = "";
	private String sate= "";
	private String submitTime = "";
	private String doneTime = "";
	private String destTerminalId = "";
	private String smscSequence = "";
	
	
	
	@Override
	public void setData(ByteBuffer buffer) throws PDUException {
	}
	@Override
	public ByteBuffer getData(){
		ByteBuffer buffer = new ByteBuffer();
		try {
		buffer.appendString(this.msgId, 8);
		buffer.appendString(this.sate, 7);
		buffer.appendString(this.submitTime, 10);
		buffer.appendString(this.doneTime, 10);
		buffer.appendString(this.destTerminalId, 32);
		buffer.appendString(this.smscSequence, 4);
		} catch (Exception e) {
			logger.info("ShortContent getData"+e.getStackTrace());
		}
		return buffer;
	}
	
	public String getMsgId() {
		return msgId;
	}
	public void setMsgId(String msgId) {
		this.msgId = msgId;
	}
	public String getSate() {
		return sate;
	}
	public void setSate(String sate) {
		this.sate = sate;
	}
	public String getSubmitTime() {
		return submitTime;
	}
	public void setSubmitTime(String submitTime) {
		this.submitTime = submitTime;
	}
	public String getDoneTime() {
		return doneTime;
	}
	public void setDoneTime(String doneTime) {
		this.doneTime = doneTime;
	}
	public String getDestTerminalId() {
		return destTerminalId;
	}
	public void setDestTerminalId(String destTerminalId) {
		this.destTerminalId = destTerminalId;
	}
	public String getSmscSequence() {
		return smscSequence;
	}
	public void setSmscSequence(String smscSequence) {
		this.smscSequence = smscSequence;
	}
	@Override
	public String toString() {
		return "ShortContent [msgId=" + msgId + ", sate=" + sate + ", submitTime=" + submitTime + ", doneTime="
				+ doneTime + ", destTerminalId=" + destTerminalId + ", smscSequence=" + smscSequence + "]";
	}

	
}

